home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / plaf / basic / BasicDesktopPaneUI$MinimizeAction.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1000 b   |  31 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.awt.event.ActionEvent;
  4. import java.beans.PropertyVetoException;
  5. import javax.swing.AbstractAction;
  6. import javax.swing.JInternalFrame;
  7.  
  8. public class BasicDesktopPaneUI$MinimizeAction extends AbstractAction {
  9.    // $FF: synthetic field
  10.    private final BasicDesktopPaneUI this$0;
  11.  
  12.    protected BasicDesktopPaneUI$MinimizeAction(BasicDesktopPaneUI var1) {
  13.       this.this$0 = var1;
  14.    }
  15.  
  16.    public void actionPerformed(ActionEvent var1) {
  17.       JInternalFrame var2 = this.this$0.desktop.getAllFrames()[0];
  18.       if (var2 != null && var2.isMaximizable()) {
  19.          try {
  20.             var2.setIcon(true);
  21.          } catch (PropertyVetoException var3) {
  22.          }
  23.       }
  24.  
  25.    }
  26.  
  27.    public boolean isEnabled() {
  28.       return true;
  29.    }
  30. }
  31.